import api from '../index';
import urls from './urls';

const header = {};

export default {
    getlist(param) {
        // return出去了一个promise
        return api.get(urls.getlist, param, null);
    },
    getonly(param) {
        return api.get(urls.getonly, param, null);
    },
    add(data) {
        return api.post(urls.add, null, null, data);
    },
    delete(reqMap) {
        return api.get(urls.delete, reqMap, null);
    },
    modify(data) {
        return api.post(urls.modify, null, null, data);
    }
};